package com.lychee.moli.dao;

import com.lychee.moli.entity.UserInfoEntity;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Lychee on 2018/4/9 11:22.
 * <p>
 * Author:Hejingzhou
 * <p>
 * Email:tcowork@163.com
 */
public interface IUserDao {
    /**
     * 插入用户
     *
     * @param userInfoEntity 插入的User信息
     * @return 影响条数
     */
    int insertUser(UserInfoEntity userInfoEntity);

    /**
     * 用户登录
     *
     * @param userName
     * @param password
     * @return
     */
    UserInfoEntity login(@Param("userName") String userName, @Param("password") String password);
}
